package cn.tedu.spring.eg2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestMapper {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext c=new AnnotationConfigApplicationContext
        ("cn.tedu.spring.eg2");
        CommentMapper ma=c.getBean(CommentMapper.class);
        System.out.println("ma="+ma);

        CommentMapper mb=c.getBean(CommentMapper.class);
        System.out.println("mb="+mb);


    }
}
